package com.wang.code;


public class _1ArrayListDemoTest {

	public static void main(String[] args) throws Exception {
		
		_1ArrayListDemo list = new _1ArrayListDemo();
		int[] arr = new int[3];
		list.add(1);
		list.add("1");
		list.add(3.14);
		list.add(true);
		list.add('1');
		list.add(new int[3]);
		list.add("ad");
		list.add("qwe");
		int size = list.size();
		System.out.println(size);
		
		System.out.println(list);
		
//		Object searchByIndex = list.searchByIndex(14);
//		System.out.println(searchByIndex);
		
//		int searchByElement = list.searchByElement(arr);
//		System.out.println(searchByElement);
		
//		System.out.println(list);
//		list.updateByIndex(16, "wert");
//		System.out.println(list);
		
//		Object deleteByIndex = list.deleteByIndex(7);
//		System.out.println(deleteByIndex);
//		System.out.println(list);
		
//		list.deleteByElement("rwe");
//		System.out.println(list);
		
//		list.insertByIndex(8, "asdf");
//		System.out.println(list);
//		System.out.println(list.size());
		
		//11.将对象中所有元素清空 void clear();
		list.clear();
		System.out.println(list);
		System.out.println(list.size());

	}

}
